home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’92 / PatchWorks Kit / Examples / MPW Example / Example.h < prev    next >
Text File  |  1992-04-27  |  438b  |  30 lines

  1. /*
  2.     Example.h
  3.     
  4.     Example MPW patchworks module.
  5.     
  6.     by Patrick C. Beard.
  7.  */
  8.  
  9. #pragma once
  10.  
  11. #include "GenericPatch.h"
  12.  
  13. class MenuSelectPatch : public GenericPatch {
  14. public:
  15.     MenuSelectPatch();
  16.     virtual void Behavior(void);
  17.  
  18. private:
  19.     long itsCallCount;
  20. };
  21.  
  22. struct MenuSelectParameters {
  23.     Point itsStartPt;
  24.     long itsResult;
  25. };
  26.  
  27. typedef struct MenuSelectParameters MenuSelectParameters;
  28.  
  29. typedef pascal long (*MenuSelectProcPtr) (Point pt);
  30.